///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep  8 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#ifndef __noname__
#define __noname__

#include <wx/string.h>
#include <wx/menu.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/toolbar.h>
#include <wx/treectrl.h>
#include <wx/sizer.h>
#include <wx/panel.h>
#include <wx/choice.h>
#include <wx/notebook.h>
#include <wx/splitter.h>
#include <wx/statline.h>
#include <wx/stattext.h>
#include <wx/frame.h>
#include <GL/glew.h>
#include <wx/glcanvas.h>
#include "glControl.h"
#include <wx/timer.h>

class RepaintTimer : public wxTimer
{
	class wxGLCanvasSubClass *_ctrl;
public:

	RepaintTimer(wxGLCanvasSubClass *ctrl)
	{
		_ctrl = ctrl;
	}

	void Notify();
};

///////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////
/// Class MyFrame1
///////////////////////////////////////////////////////////////////////////////
class MyFrame1 : public wxFrame 
{
private:

public:
	wxMenuBar* m_menubar1;
	wxMenu* fileMenuItem;
	wxMenuItem* fileSaveMenuItem;
	wxMenuItem* fileSaveAsMenuItem;
	wxMenuItem* fileSaveAllMenuItem;
	wxMenuItem* fileUploadMenuItem;
	wxMenuItem* fileExitMenuItem;
	wxMenu* editMenuItem;
	wxMenuItem* editUndoMenuItem;
	wxMenuItem* editRedoMenuItem;
	wxMenu* editToolMenuItem;
	wxMenu* viewMenuItem;
	wxMenu* viewModeMenuItem;
	wxMenuItem* viewModePerspectiveMenuItem;
	wxMenuItem* viewModeTextureMenuItem;
	wxMenuItem* viewModeHybridMenuItem;
	wxMenu* view3DMenuItem;
	wxMenuItem* view3DAnimateMenuItem;
	wxMenuItem* view3DFollowCursorMenuItem;
	wxMenuItem* view3DGrassMenuItem;
	wxMenuItem* view3DGhostMenuItem;
	wxMenu* view3DMultisamplingMenuItem;
	wxMenuItem* view3DMultisampling0xMenuItem;
	wxMenuItem* view3DMultisampling1xMenuItem;
	wxMenuItem* view3DMultisampling2xMenuItem;
	wxMenuItem* view3DMultisampling4xMenuItem;
	wxMenuItem* view3DMultisampling8xMenuItem;
	wxMenu* view2DMenuItem;
	wxMenuItem* view2DAlphaCheckerboardMenuItem;
	wxMenu* view2DOverlayMenuItem;
	wxMenuItem* view2DOverlayEnableMenuItem;
	wxMenu* viewTransModeMenuItem;
	wxMenuItem* viewTransModeOffMenuItem;
	wxMenuItem* viewTransModeHelmetOnlyMenuItem;
	wxMenuItem* viewTransModeAllMenuItem;
	wxMenu* viewVisiblePartsMenuItem;
	wxMenu* optionsMenuItem;
	wxMenuItem* optionsKeyShortcutsMenuItem;
	wxMenuItem* optionsBgColorMenuItem;
	wxMenu* languageMenuItem;
	wxMenu* helpMenuItem;
	wxMenuItem* helpCheckUpdatesMenuItem;
	wxMenuItem* helpAutoUpdateMenuItem;
	wxSplitterWindow* m_splitter1;
	wxPanel* m_panel1;
	wxToolBar* m_toolBar5;
	wxSplitterWindow* m_splitter2;
	wxPanel* m_panel4;
	wxTreeCtrl* m_treeCtrl1;
	wxPanel* m_panel5;
	wxNotebook* m_notebook1;
	wxPanel* m_panel22;
	wxChoice* m_choice1;
	wxPanel* m_panel23;
	wxPanel* m_panel24;
	wxPanel* m_panel2;
	wxToolBar* m_toolBar6;
	wxBoxSizer* bSizer15;

	wxPanel* m_panel21;
	wxStaticLine* m_staticline1;
	wxStaticText* m_staticText2;

	class wxGLCanvasSubClass* m_glCanvas;
	RepaintTimer *_repaintTimer;

	wxToolBarToolBase *m_undoToolButton, *m_redoToolButton;
	wxToolBarToolBase *perspectiveToolStripButton, *orthographicToolStripButton, *hybridToolStripButton;

	bool _skipListbox;

	// Virtual event handlers, overide them in your derived class
	void m_splitter2OnSplitterSashPosChanging( wxSplitterEvent& event );	
	void frameShow(wxShowEvent& event);
	void m_treeCtrlItemChanged(wxTreeEvent &event);
	void OnViewToolBarItemClicked(wxCommandEvent &event);

public:

	MyFrame1( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("MCSkin3DX"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 1015,706 ), long style = wxDEFAULT_FRAME_STYLE|wxSYSTEM_MENU|wxCLIP_CHILDREN|wxTAB_TRAVERSAL );
	~MyFrame1();

	void m_splitter1OnIdle( wxIdleEvent& )
	{
		m_splitter1->SetSashPosition( 320 );
		m_splitter1->Disconnect( wxEVT_IDLE, wxIdleEventHandler( MyFrame1::m_splitter1OnIdle ), NULL, this );
	}

	void m_splitter2OnIdle( wxIdleEvent& )
	{
		m_splitter2->SetSashPosition( 378 );
		m_splitter2->Disconnect( wxEVT_IDLE, wxIdleEventHandler( MyFrame1::m_splitter2OnIdle ), NULL, this );
	}

	void SetCanSave(bool dirty);
	void CheckUndo();
};

#endif //__noname__
